package com.bootdo.clouddoES.controller;




import com.alibaba.fastjson.JSON;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequest;
import org.elasticsearch.action.admin.indices.create.CreateIndexResponse;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.IndicesClient;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.index.query.QueryBuilders;
import org.elasticsearch.search.SearchHit;
import org.elasticsearch.search.SearchHits;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;

import java.awt.print.Book;
import java.io.IOException;


@RestController
@RequestMapping("/pay")
public class TestController {

    @Autowired
    private IndexService2 indexService2;
    @Autowired
    private TermQueryService termQueryService;
    @GetMapping("/1111")
    public void sendMessage7() {
        //indexService2.deleteIndex();
        termQueryService.termsQuery();
        System.out.println("11111111");
    }




}
